import dva from 'dva';
// import { createBrowserHistory as createHistory  } from 'history';
import { browserHistory } from 'dva/router'
import './utils/rem';
import './global.less';
import 'antd-mobile/dist/antd-mobile.css';

// 1. Initialize
const app = dva({
    history: browserHistory,
});

// 2. Model
// const models = ['user'];
// models.forEach((item) => app.model(require(`./models/${item}.ts`).default));

// 3. Router
app.router(require('./router/index.js').default);

// 4. Start
app.start('#app');